<template>
  <basic-container class="basic-box">
    <cms-tree-component ref="cmsTree" v-bind:whichType="whichType"  v-bind:whichPassData="passData"/>
  </basic-container>
</template>

<script>
  import cmsTreeComponent from "@/components/cmsTree/cmsTreeComponent";
  import { mapGetters } from "vuex";
  var Dict = JSON.parse(localStorage.getItem('mall-dictionary')).content;
  export default {
    data () {
      return {
        whichType:'cmsSysArticle',
        passData:1
      };
    },
    components: {
      cmsTreeComponent,
    },
    computed: {
      ...mapGetters(["permission", 'userInfo']),
      permissionList () {
        return {
          addBtn: this.vaildData(this.permission[""], false),
          viewBtn: this.vaildData(this.permission[""], false),
          delBtn: this.vaildData(this.permission[""], false),
          editBtn: this.vaildData(this.permission[""], false)
        };
      },
    },
    created(){
      this.$refs.cmsTree.open()
    },

  };
</script>


